import qrcode

codeText = "http://www.baidu.com"
img = qrcode.make(codeText)
print("文件格式",type(img))
img.save("out27_22.JPG")
